home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / models / animTests / euler_bezier_rotation_box.s3d < prev    next >
Text File  |  2000-06-08  |  2KB  |  80 lines

  1. Background {
  2.     color 0 0 0
  3. }
  4. DEF world-TIMER TimeSensor {
  5.     loop TRUE
  6.     cycleInterval 3.333
  7. }
  8. DEF Box01 Transform {
  9.     translation -0.3824 0.02415 -0.6492
  10.     children [
  11.         Shape {
  12.             appearance [
  13.                 MultiAppearance {
  14.                     material Material {
  15.                         diffuseColor 0.6039 0.6039 0.898
  16.                     }
  17.                 }
  18.             ]
  19.             geometry MultiMesh {
  20.                 coord DEF Box01-COORD Coordinate {
  21.                     point [
  22.                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  23.                     ]
  24.                 }
  25.                 coordIndex [
  26.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  27.                     2 0 4 -1 4 6 2 -1
  28.                 ]
  29.                 smoothingIndex [
  30.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  31.                 ]
  32.                 appearanceIndex [
  33.                     1 1 0 0 4 4 3 3 5 5 2 2
  34.                 ]
  35.                 textureMappings [
  36.                 ]
  37.             }
  38.         }
  39.         DEF Box01-EULER-INTERP EulerXYZInterpolator {
  40.             xInterpolator BezierScalarInterpolator {
  41.                 key [
  42.                     0 0.33 1
  43.                 ]
  44.                 keyValue [
  45.                     0 1.5 1.5 3.14
  46.                     3.14 3.14 3.14 3.14 
  47.                 ]
  48.             }
  49.             yInterpolator BezierScalarInterpolator {
  50.                 key [
  51.                     0 0.33 0.66 1
  52.                 ]
  53.                 keyValue [
  54.                     0 0 0 0
  55.                     0 .35 .35 .75 
  56.                     .75 .75 .75 .75
  57.                 ]
  58.             }
  59.             zInterpolator BezierScalarInterpolator {
  60.                 key [
  61.                     0 0.66 .75  1
  62.                 ]
  63.                 keyValue [
  64.                     0 0 0 0 
  65.                     0 -.25 -1.571 -1.571 
  66.                     -1.571 -1.571 -1.047 0
  67.                 ]
  68.             }
  69.         }
  70.         ROUTE world-TIMER.fraction_changed TO Box01-EULER-INTERP.set_fraction
  71.         ROUTE Box01-EULER-INTERP.value_changed TO Box01.set_rotation
  72.     ]
  73. }
  74. DEF Camera01 Viewpoint{
  75.     position -0.9421 6.743 126
  76.     orientation 0 0 0 0
  77.     fieldOfView 0.6024
  78.     description "Camera01"
  79. }
  80.